<!-- !Main -->
<div id="main" class="sidebar-right"><!-- class="sidebar-none", class="sidebar-left", class="sidebar-right" -->

    <div class="wf-wrap">
        <div class="wf-container-main">

            <!-- !- Content -->
            <div id="content" role="main" class="content">                    

                <h2><?php echo $term_title?></h2>
                <div class="hr-breadcrumbs divider-heder">
                    <div class="assistive-text">You are here:</div>
                    <ol class="breadcrumbs wf-td text-small flat">
                        <li><a href="<?php echo $this->baseUrl?>">Home</a></li>
                        <li><a href="#">search</a></li>
                    </ol>
                </div>

                    <?php $this->widget('zii.widgets.CListView', array(
                            'dataProvider'=>$dataProvider,     
                            'itemView'=>'//web/post/_view_medium',
                            'id'=>'post-items',
                            'template' => "{items}",
                            'itemsCssClass' => 'wf-container',//iso-container 
                            //                            'emptyText' => 'Không có bài viết nào được tìm thấy !',
                            'enablePagination'=>false,
                            'ajaxUpdate'=>false,

                            'pagerCssClass' => 'pagination',
                            'pager' => Array(
                                'id'=>'',
                                'internalPageCssClass'=>'',
                                'cssFile'=>'', 
                                'header'=>'',
                                'hiddenPageCssClass'=>'hidden',
                                'selectedPageCssClass'=>'active',
                                'maxButtonCount'=>5,
                                'nextPageLabel'=>'Next ›',
                                'prevPageLabel'=>'‹ Previous',
                                'lastPageLabel'=>'Last ››',
                                'firstPageLabel'=>'‹‹ First',
                            ),   
                        ));?>

                
                <div class="pagination">
                <?php $this->widget('CLinkPager', array(
                        'currentPage'=>$pagination->currentPage,
                        'itemCount'=>$pagination->itemCount,
                        'pageSize'=>$pagination->pageSize,
                        'id'=> null,
//                        'htmlOptions' => array(
//                            'class' => 'pagination',
//                        ),
                        'internalPageCssClass'=>'',
                        'cssFile'=>'', 
                        'header'=>'',
                        'hiddenPageCssClass'=>'hidden',
                        'selectedPageCssClass'=>'active',
                        'maxButtonCount'=>5,
                        'nextPageLabel'=>'Next ›',
                        'prevPageLabel'=>'‹ Previous',
                        'lastPageLabel'=>'Last ››',
                        'firstPageLabel'=>'‹‹ First',
                    ));?>
                </div>


            </div><!-- #content -->


            <?php $this->renderPartial('//common/sidebar');?>

        </div><!-- .wf-container -->
    </div><!-- .wf-wrap -->
</div><!-- #main -->
